/**
 * @FileName ConcreteDecorator2.java
 * @Package com.designMode.decorate
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-5 上午10:54:47
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.decorate;

/**
 * @author 顾博君
 * @ClassName ConcreteDecorator2
 * @Date 2016-1-5 上午10:54:47
 * @Function 具体装饰者
 */
public class ConcreteDecorator2 extends Decorator {
    public ConcreteDecorator2(Component _component) {
        super(_component);
    }

    private void method2() {
        System.out.println("method2修饰");
    }

    public void operate() {
        this.method2();
        super.operate();
    }
}
